<?
	chdir("..");
	include("common.php");

	include("siteadmin/accesscontrol.php");

	include("siteadmin/header.php");
?>
<p><font face=arial size=3>
	<?
		list($users) = mysql_fetch_row( mysql_query("SELECT COUNT(*) FROM users") );
		list($forums) = mysql_fetch_row( mysql_query("SELECT COUNT(*) FROM forum") );
		list($posts) = mysql_fetch_row( mysql_query("SELECT COUNT(*) FROM posts") );
		list($threads) = mysql_fetch_row( mysql_query("SELECT COUNT(*) FROM thread") );
	?>
	<b>Welcome!!!... From this administration panel you will have full control of your site.</B> 
</p><br>
	<TABLE class=design bgColor=#ffffff cellPadding=3 cellSpacing=0 width=100% border='1' BORDERCOLOR="#C0C0C0" STYLE="border-collapse: collapse">
	<TR>
		<TD class='a1'><font face=arial size=3>Total Number of Users:</TD>
		<TD class='a1'><font face=arial size=3><?=$users?></TD>
		<TD class='a1'><font face=arial size=3>Total Number of Forums:</TD>
		<TD class='a1'><font face=arial size=3><?=$forums?></TD>
	</tr>
	<TR>
		<TD class='a1'><font face=arial size=3>Total Number of Threads:</TD>
		<TD class='a1'><font face=arial size=3><?=$threads?></TD>
		<TD class='a1'><font face=arial size=3>Total Number of Posts By Users:</TD>
		<TD class='a1'><font face=arial size=3><?=$posts?></TD>
	</tr>
	</table>
	<br><br><br>
</p>
<?
	include("siteadmin/footer.php");
?>